package cn.etg.facatory.simple;

import java.lang.reflect.Type;

public  class SuShiStore {

    private MakeSuShi makeSuShi;
    public MakeSuShi getSuShi(String type){
        if("Tuna".equalsIgnoreCase(type)){
            makeSuShi= new TunaSuShi(type);
        }else if("MeatFloss".equalsIgnoreCase(type)){
            makeSuShi= new MeatFlossSuShi(type);
        }
        makeSuShi.prepare();
        makeSuShi.make();
        makeSuShi.finish();
        return makeSuShi;
    }

}
